body {
    background-color: #f0f1f4;
}

.w {
    width: 1200px;
    margin: auto;
}

.header {
    height: 41px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.logo img {
    float: left;
    margin-left: 130px;
    padding-bottom: 20px;
    margin-top: 50px;
}


/* 搜索框 */
.search {
    float: left;
    margin-left: 100px;
}

.search input {
    float: left;
    width: 500px;
    height: 60px;
    border: 1px solid pink;
    padding-left: 21px;
    margin-top: 55px;
}

.search button img {
    margin-top: 60px;
    margin-left: 15px;
}

/* 购物车 */
.car {
    float: left;
    margin-left: 20px;
    padding-top: 5px;
    margin-top: 60px;
}

.car a {
    float: left;
    display: block;
    color: black;
    font-size: 15px;
}

.car img {
    float: left;
    margin-right: 5px;
    padding-bottom: 10px;
}

.car a:hover {
    color: rgb(248, 129, 149);
}

/* 导航栏 */
.nav {
    float: left;
    margin-left: 10px;
}

.nav ul li {
    float: left;
    margin-right: 30px;

}

.nav ul li a {
    display: block;
    padding: 10px 12px;
    color: #050505;
    font-size: 10px;
}

.nav ul li a:hover {
    color: rgba(199, 38, 138, 0.721);
}

/* 轮播图 */
* {
    padding: 0px;
    margin: 0px;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#box {
    width: 100%;
    height: 480px;
    margin: 10px auto;
    position: relative;
}

#box img {
    position: absolute;
    top: 0px;
    left: 0px;
    display: none;
    width: 1170px;
    height: 700px;
}

#box img.cur {
    display: block;
}

#box ul {
    width: 200px;
    height: 20px;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}

#box ul li {
    width: 10px;
    height: 10px;
    background: #999;
    list-style: none;
    float: left;
    margin-right: 30px;
    text-align: center;
    line-height: 20px;
    border-radius: 10px;
}

#box ul li.bg_red {
    background: rgb(232, 119, 172);
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.prev {
    left: 5px;
    width: 25px;
    height: 25px;
    background-color: lightgray;
}

.next {
    right: 35px;
    width: 25px;
    height: 25px;
    background-color: lightgray;
}

.container {
    display: flex;
    align-items: flex-start;
    /* 从顶部对齐 */
}

/* 倒计时 */
.timeDown-box {
    width: 200px;
    height: 270px;
    background: url(../images/d1.jpg);
    margin-top: 40px;
    margin-right: 30px;
}

.text1 {
    text-align: center;
    padding-top: 30px;
    font-size: 25px;
    font-weight: 1000;
    color: white;
}

.text2 {
    text-align: center;
    padding-top: 80px;
    font-size: 17px;
    font-weight: 1000;
    color: white;
}

.text3 {
    text-align: center;
    padding-top: 55px;
    font-size: 25px;
    font-weight: 1000;
    color: rgb(232, 236, 22);
}

#box1,
#box2,
#box3 {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: black;
    padding: 5px;
    margin-left: 25px;
    margin-top: 17px;
    color: white;
    text-align: center;
    font-size: 20px;
}

i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: white;
    left: 48px;
}

/* 商品 */
.product {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 40px;
}

.product li {
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
}

.product li:nth-child(4n) {
    margin-right: 0;
}

.product li h4 {
    color: #050505;
    font-size: 14px;
    font-weight: 400;
    margin: 25px 20px 12px;
}

.product li p {
    font-size: 15px;
    color: #999;
    margin-left: 20px;
}

.product li p span {
    color: #ff7c2d;
}

.product ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product li {
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
}

.product li:nth-child(4n) {
    margin-right: 0;
}

.product li h4 {
    color: #050505;
    font-size: 14px;
    font-weight: 400;
    margin: 25px 20px 12px;
}

.product li p {
    font-size: 15px;
    color: #999;
    margin-left: 20px;
}

.product li p span {
    color: #ff7c2d;
}

/* 底部说明 */
.footer {
    height: 417px;
    margin-top: 20px;
    padding-top: 30px;
}

.footer-l {
    float: left;
    padding-left: 20px;
}

.footer-l p {
    font-size: 12px;
    color: #666;
    line-height: 18px;
    margin: 25px 0 15px;
}

.download {
    display: block;
    width: 120px;
    height: 70px;
    border: 1px solid pink;
    text-align: center;
    line-height: 36px;
    color: pink;
    font-weight: 700;
}

.footer-r {
    float: right;
}

.footer-r dl {
    float: left;
    width: 200px;
}

.footer-r dl dt {
    height: 30px;
    color: #333;
}

.footer-r dl dd {
    height: 22px;
}

.footer-r dl dd a {
    font-size: 12px;
    color: #333;
}

.footer-r dl dd a:hover {
    color: lightskyblue;
}

/* 浮动广告 */
.floating-ad {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.floating-ad img {
    width: 165px;
    height: 110px;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* 一键换肤 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-size: cover;
}

.skin-toggle-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.cancel-skin-btn {
    display: inline-block;
    background-color: #F0D9FF;
    border: none;
    border-radius: 4px;
    color: #663399;
    font-size: 13px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-skin-btn:hover {
    background-color: #E0C9FF;
}

.cancel-skin-btn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box {
    position: fixed;
    right: 5px;
    top: 50%;
    width: 100px;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 998;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.box.visible {
    transform: translateY(0);
}

.box.hidden {
    display: block;
    visibility: hidden;
    transition: visibility 0s 0.3s,
     opacity 0.3s ease-in-out;
}

.box li img {
    width: 90px;
    height: 80px;
}